
<form id="form" action="{:url('order/edit')}">
    <input type="hidden" name="id" value="{$info.id}">
    <div class="titlebar"><i class="iconfont icon-text_icon"></i>修改订单</div>
    <table class="formtable">
        <tr>
            <th>用户:</th>
            <td>
                <input readonly="readonly" id="uid" class="readonly input w100" type="text" name="uid" value="{$info.uid}"/>
                <button url="{:url('system/passport.user/selectUser')}" data="uid"  type="button" class="selectid button">
                    <i class="iconfont icon-my_icon"></i>选择用户
                </button>
            </td>
        </tr>
        <tr>
            <th>产品:</th>
            <td>
                <input readonly="readonly" id="product_id" class="readonly input w100" type="text" name="product_id" value="{$info.product.id}"/>
                <button url="{:url('order/selectProduct')}" data="product_id" type="button" class="selectid button">
                    <i class="iconfont icon-my_icon"></i>选择产品
                </button>
            </td>
        </tr>
        <tr>
            <th>标题:</th>
            <td><input class="input w400" datatype="*" type="text" name="title" value="{$info.title}"/></td>
        </tr>
        <tr>
            <th>问题:</th>
            <td><input class="input w400" datatype="*" type="text" name="question" value="{$info.question}"/></td>
        </tr>
        <tr>
            <th>姓名:</th>
            <td><input class="input w100" datatype="*" type="text" name="realname" value="{$info.realname}"/></td>
        </tr>
        <tr>
            <th>电话:</th>
            <td><input class="input w120" datatype="*" type="text" name="phone" value="{$info.phone}"/></td>
        </tr>
        <tr>
            <th>住址:</th>
            <td><input class="input w400" datatype="*" type="text" name="address" value="{$info.address}"/></td>
        </tr>
        <tr>
            <th>紧急程度:</th>
            <td>
                <select class="select w200" datatype="*" name="urgent" class="select">
                    <option value="0" {if $info.urgent == 0}selected{/if}>一般</option>
                    <option value="1" {if $info.urgent == 1}selected{/if}>中等</option>
                    <option value="2" {if $info.urgent == 2}selected{/if}>危险</option>
                    <option value="2" {if $info.urgent == 3}selected{/if}>超急</option>
                </select>
            </td>
        </tr>
        <tr>
            <th>
                <input type="hidden" name="img" id="img_index"/>
                <button url="{:url('system/passport.common/upload')}" type="button" class="button selectid"><i class="iconfont icon-pic"></i>选择图片
                </button>
            </th>
            <td id="imgbox">
                {foreach $imgs as $pic}
                <div class="box-view fn-left fn-cp">
                    <input type="hidden" name="imgs[]" value="{$pic}" /><img src="{$pic}" onclick="selectImg(this)">
                    <div class="opera">
                        <a class="imgbox-left" href="javascript:;"><i class="iconfont icon-arrowleft"></i></a>
                        <a class="imgbox-right" href="javascript:;"><i class="iconfont icon-arrowright"></i></a>
                        <a class="imgbox-link" href="javascript:;" onclick="linkImg(this)"><i class="iconfont icon-pic"></i></a>
                        <a class="imgbox-close" href="javascript:;" onclick="delImg(this)"><i class="iconfont icon-cuowu"></i></a>
                    </div>
                </div>
                {/foreach}
            </td>
        </tr>
        <tr>
        <th></th>
        <td>
            <input type="submit" value="确定" class="button button-blue submit" />
            <input type="reset" value="重置" class="button button-blank"/>
        </td>
    </tr>
</table>
</div>
</form>
<script type="text/javascript">
Do('base','layer','form','date', function () {
    $('#form').isForm();
    $(".selectid").win();
})
</script>